package com.yyjj.hangqing.adapter;

import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yyjj.hangqing.R;
import com.yyjj.hangqing.entity.ZdEntity;
import com.yyjj.hangqing.entity.ZjkxEntity;

import tech.com.commoncore.manager.GlideManager;

public class ZjlxAdpter extends BaseQuickAdapter<ZjkxEntity, BaseViewHolder> {

    public ZjlxAdpter() {
        super(R.layout.hq_item_zjlx);
    }

    @Override
    protected void convert(BaseViewHolder helper, ZjkxEntity item) {
        GlideManager.loadImg(item.getIcon(), (ImageView) helper.getView(R.id.img));
        helper.setText(R.id.name_tv, item.getName());
        helper.setText(R.id.total_tv, item.getPublicttail());
        helper.setText(R.id.zdf_tv, item.getAvailablecount());
    }
}
